package com.ruoyi.system.service;

import com.github.binarywang.wxpay.bean.notify.WxPayNotifyV3Result;
import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyV3Result;

/**
 * 微信回调公共service
 *
 * @author : cfx
 * @date : 2023/1/31 17:37
 **/
public interface BaseWxPayCallbackService {

    /**
     * 处理支付回调通知
     * @param xmlData
     */
    void handlePayNotify(WxPayNotifyV3Result xmlData);

    void mockHandlePayNotify(WxPayOrderNotifyResult notifyResult);

    /**
     * 处理退款回调通知
     * @param xmlData
     */
    void handleRefundNotify(WxPayRefundNotifyV3Result xmlData);
}
